package org.wk.core.common.exception;


public enum ExceptionCode implements GeneralExceptionCode{
	ex_system("ex_system_0001","系统出错,请联系客服"),
	ex_base_001("ex_business_001","非法操作"),
	ex_base_002("ex_base_002","{0}字段不能为空"),
	ex_base_003("ex_base_003","文件未找到"),
	ex_base_004("ex_base_004","手机号输入不符合规则"),
	ex_base_005("ex_base_005","邮箱输入格式不正确"),
	ex_user_001("ex_user_001","用户已存在"),
	ex_dept_001("ex_dept_001","部门名称不能重复");
	private String code;
	private String message;

	private ExceptionCode(String code, String message) {
		this.code = code;
		this.message = message;
	}

	@Override
	public String getMessage() {
		return this.message;
	}

	@Override
	public String getCode() {
		return this.code;
	}
}
